export const tabsList = [
  {
    label: "仪表盘",
    value: "0",
    key: "dashboard",
  },
  {
    label: "威胁场景管理",
    value: "1",
    key: "scenario",
  },
  {
    label: "模板管理",
    value: "4",
    key: "template",
  },
  {
    label: "任务管理",
    value: "2",
    key: "task",
  },
  {
    label: "检测详情",
    value: "3",
    key: "vulnerability_detail",
  },

  {
    label: "恶意地址管理",
    value: "5",
    key: "malicious_address",
  },
  {
    label: "外联验证",
    value: "6",
    key: "verification",
  },
];

// 威胁类型中文映射
export const threatTypeMap = {
  sql_injection: "SQL注入",
  command_injection: "命令注入",
  code_execution: "代码执行",
  deserialization: "反序列化",
  file_upload: "文件上传",
  file_inclusion: "文件包含",
  ssrf: "SSRF",
  xxe: "XXE",
  template_injection: "模板注入",
  xss: "XSS",
  authentication_bypass: "认证绕过",
  information_disclosure: "信息泄露",
};

// 攻击分类中文映射
export const attackCategoryMap = {
  rce: "远程代码执行",
  web_attack: "Web攻击",
  authentication: "认证授权",
  file_operation: "文件操作",
  database: "数据库",
  api_security: "API安全",
  cloud_native: "云原生",
  injection: "注入攻击",
  execution: "执行攻击",
  read: "读取攻击",
};

// 严重程度中文映射
export const severityMap = {
  critical: "严重",
  high: "高危",
  medium: "中危",
  low: "低危",
};

// 威胁类型图标映射
export const threatTypeIcons = {
  sql_injection: "💉",
  command_injection: "⚡",
  code_execution: "🔥",
  deserialization: "📦",
  file_upload: "📤",
  file_inclusion: "📂",
  ssrf: "🌐",
  xxe: "📄",
  template_injection: "🎨",
  xss: "🚨",
  authentication_bypass: "🔓",
  information_disclosure: "🔍",
};
